package com.tjetc.dao;

import com.tjetc.entity.Bank;
import org.junit.jupiter.api.Test;

import java.sql.SQLException;
import java.util.List;

/**
 * @author: gaoyongxiang
 * @ date: 2025/8/15
 * @ version: v1.0
 * @author gaoyongxiang
 */
public class BankDao extends BaseDao<Bank>{


    @Test
    public void testBankDao() throws SQLException {
        String sql = "select * from bank where id = ?";
//        List<Bank> bankList = queryMany(sql, Bank.class);
//        System.out.println(bankList);

        Bank bank = queryOne(sql, Bank.class, 1);
        System.out.println(bank);
    }

}